<template>
<div>
  <!--    二维码弹层-->
  <div class="layer-box" >
    <div class="code-layer">
      <div class="code-layer-title">
        24小时在线咨询
        <img @click="closeLayer" src="../assets/image/xx-icon.png" class="xx-icon" alt="">
      </div>
      <div class="code-box">
        <div class="code-content-title">请加我的<span class="span-item">客服微信</span></div>
        <div class="code-borer">
          <div class="tow-code-border">
            <img src="../assets/image/b0ce35c063c64d8925c6ede4e6afb59.jpg" class="wx-code" alt="">
          </div>
        </div>
        <div class="code-tips">长按扫一扫，添加企业微信</div>

      </div>

    </div>

  </div>
</div>
</template>

<script>
export default {
  name: "codeLayer",
  methods:{
    closeLayer(){
      this.$parent.show=false;
    },
  },
}
</script>

<style scoped lang="less">

.layer-box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.code-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F8F8F8;
  border-radius: 20px 20px 0px 0px;
  padding: 40px 25px;
}

.code-layer-title {
  font-size: 18px;
  color: #333333;
  text-align: center;
  margin-bottom: 27px;
  position: relative;
}

.code-box {
  width: 100%;
  padding: 23px 0;
  background-color: #fff;
  border-radius: 20px;
}

.code-content-title {
  font-size: 21px;
  font-family: PingFang SC;
  font-weight: 400;
  color: #333333;
  text-align: center;
  margin-bottom: 32px;

}

.span-item {
  color: #FC6B42;
}

.code-borer {
  width: 180px;
  height: 180px;
  background: #FC6B42;
  border-radius: 15px;
  margin: 0 auto 32px;
  padding: 10px;
}

.tow-code-border {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  padding-left: 5px;
  box-sizing: border-box;
  overflow: hidden;
}

.wx-code {
  width: 100%;
  height: 100%;
}
.code-tips{
  text-align: center;
  font-size: 15px;
  color: #666666;
}

.xx-icon{
  width: 14px;
  height: 14px;
  position: absolute;
  right: 0;
  top: 3px;
}


</style>